package com.luych.toolbox.data.service.entity;

import com.luych.toolbox.common.enums.DataBackupPlanStatus;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "data_backup_plan")
public class DataBackupPlan extends BaseEntity {

    @Column(name = "data_source_id")
    private String dataSourceId;
    @Column(name = "data_agent_id")
    private String dataAgentId;
    @Column(name = "name")
    private String name;
    @Column(name = "file")
    private String file;
    @Column(name = "cron")
    private String cron;
    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private DataBackupPlanStatus status;
    @Column(name = "owner_id")
    private String ownerId;

    public String getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceId(String dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public String getDataAgentId() {
        return dataAgentId;
    }

    public void setDataAgentId(String dataAgentId) {
        this.dataAgentId = dataAgentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public DataBackupPlanStatus getStatus() {
        return status;
    }

    public void setStatus(DataBackupPlanStatus status) {
        this.status = status;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }
}